package com.example.management.common.service

import com.example.management.common.domain.FileDO

interface FileService {
    operator fun get(id: Long?): FileDO

    fun list(map: Map<String, Any>): List<FileDO>

    fun count(map: Map<String, Any>): Int

    fun save(sysFile: FileDO): Int

    fun update(sysFile: FileDO): Int

    fun remove(id: Long?): Int

    fun batchRemove(ids: Array<Long>): Int

    /**
     * 判断一个文件是否存在
     * @param url FileDO中存的路径
     * @return
     */
    fun isExist(url: String?): Boolean?
}
